package com.toubutu.audio.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import com.toubutu.audio.admin.dto.RolePermissionBindDto;
import com.toubutu.audio.admin.entity.RolePermission;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 戒燥
 * @since 2023-09-30
 */
@Mapper
public interface RolePermissionMapper extends BaseMapper<RolePermission> {
    void saveBatch(@Param("roleDto") RolePermissionBindDto dto);

    List<String> queryPermissionCode(@Param("roleIds") List<Integer> roleIds);

}
